def main():
    s = 0
    for i in range(10):
        s += 10*i+7
    print(s)


if __name__ == '__main__':
    main()
